package com.bean;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Cleanup;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Entity
@Table(name = "work_log_info")
@TableExcel(name="workLogInfo", content = "EasyExcel工作日志",jpaBeanName="com.mapper.repository.WorkLogInfoRepository")
public class WorkLogInfo {

    @Id
    private String id;

    @Column(name = "project_name")
    private String projectName;

    private String content;

    private String other;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date worktime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @JsonProperty("userid")
    private String creator;
}
